﻿using System;
using System.Collections.Generic;
using System.IO;
using Terraria.ModLoader.IO;
using Terraria.World.Generation;

namespace Terraria.ModLoader
{
	// Token: 0x020001FB RID: 507
	public class ModWorld
	{
		// Token: 0x170001AA RID: 426
		// (get) Token: 0x0600162C RID: 5676 RVA: 0x00010D00 File Offset: 0x0000EF00
		// (set) Token: 0x0600162D RID: 5677 RVA: 0x00010D08 File Offset: 0x0000EF08
		public Mod mod { get; internal set; }

		// Token: 0x170001AB RID: 427
		// (get) Token: 0x0600162E RID: 5678 RVA: 0x00010D11 File Offset: 0x0000EF11
		// (set) Token: 0x0600162F RID: 5679 RVA: 0x00010D19 File Offset: 0x0000EF19
		public string Name { get; internal set; }

		// Token: 0x06001630 RID: 5680 RVA: 0x00010D22 File Offset: 0x0000EF22
		public virtual bool Autoload(ref string name)
		{
			return this.mod.Properties.Autoload;
		}

		// Token: 0x06001631 RID: 5681 RVA: 0x00006B58 File Offset: 0x00004D58
		public virtual void Initialize()
		{
		}

		// Token: 0x06001632 RID: 5682 RVA: 0x0000D858 File Offset: 0x0000BA58
		public virtual TagCompound Save()
		{
			return null;
		}

		// Token: 0x06001633 RID: 5683 RVA: 0x00006B58 File Offset: 0x00004D58
		public virtual void Load(TagCompound tag)
		{
		}

		// Token: 0x06001634 RID: 5684 RVA: 0x00006B58 File Offset: 0x00004D58
		public virtual void LoadLegacy(BinaryReader reader)
		{
		}

		// Token: 0x06001635 RID: 5685 RVA: 0x00006B58 File Offset: 0x00004D58
		public virtual void NetSend(BinaryWriter writer)
		{
		}

		// Token: 0x06001636 RID: 5686 RVA: 0x00006B58 File Offset: 0x00004D58
		public virtual void NetReceive(BinaryReader reader)
		{
		}

		// Token: 0x06001637 RID: 5687 RVA: 0x00006B58 File Offset: 0x00004D58
		public virtual void PreWorldGen()
		{
		}

		// Token: 0x06001638 RID: 5688 RVA: 0x00006B58 File Offset: 0x00004D58
		public virtual void ModifyWorldGenTasks(List<GenPass> tasks, ref float totalWeight)
		{
		}

		// Token: 0x06001639 RID: 5689 RVA: 0x00006B58 File Offset: 0x00004D58
		public virtual void PostWorldGen()
		{
		}

		// Token: 0x0600163A RID: 5690 RVA: 0x00006B58 File Offset: 0x00004D58
		public virtual void ResetNearbyTileEffects()
		{
		}

		// Token: 0x0600163B RID: 5691 RVA: 0x00006B58 File Offset: 0x00004D58
		public virtual void PreUpdate()
		{
		}

		// Token: 0x0600163C RID: 5692 RVA: 0x00006B58 File Offset: 0x00004D58
		public virtual void PostUpdate()
		{
		}

		// Token: 0x0600163D RID: 5693 RVA: 0x00006B58 File Offset: 0x00004D58
		public virtual void TileCountsAvailable(int[] tileCounts)
		{
		}

		// Token: 0x0600163E RID: 5694 RVA: 0x00006B58 File Offset: 0x00004D58
		public virtual void ChooseWaterStyle(ref int style)
		{
		}

		// Token: 0x0600163F RID: 5695 RVA: 0x00006B58 File Offset: 0x00004D58
		public virtual void ModifyHardmodeTasks(List<GenPass> list)
		{
		}

		// Token: 0x06001640 RID: 5696 RVA: 0x00006B58 File Offset: 0x00004D58
		public virtual void PostDrawTiles()
		{
		}
	}
}
